package com.lightsaber.trade.cloth.entity.planning;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.lightsaber.trade.core.entity.BaseEntity;

@Entity
@Table(name = "MHPP_ADMIN_DUTY")
public class AdminDuty extends BaseEntity {

    private static final long serialVersionUID = 4991428846132091602L;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "LEVEL_3_PLANNING_ID", updatable = false)
    private Level3Planning level3Planning;

    @Column(name = "DISCIPLINE", nullable = false, length = 100)
    private String discipline;

    @Column(name = "OPERATING_CAMPUS", nullable = false, length = 100)
    private String operatingCampus;

    @Column(name = "OPERATING_UNIT", nullable = false)
    private String operatingUnit;

    @Column(name = "YEAR")
    private int year;

    @Column(name = "DUTY")
    private int duty;

    public String getDiscipline() {
        return discipline;
    }

    public void setDiscipline(final String discipline) {
        this.discipline = discipline;
    }

    public String getOperatingCampus() {
        return operatingCampus;
    }

    public void setOperatingCampus(final String operatingCampus) {
        this.operatingCampus = operatingCampus;
    }

    public String getOperatingUnit() {
        return operatingUnit;
    }

    public void setOperatingUnit(final String operatingUnit) {
        this.operatingUnit = operatingUnit;
    }

    public int getDuty() {
        return duty;
    }

    public void setDuty(final int duty) {
        this.duty = duty;
    }

    public Level3Planning getLevel3Planning() {
        return level3Planning;
    }

    public void setLevel3Planning(final Level3Planning level3Planning) {
        this.level3Planning = level3Planning;
    }

    public int getYear() {
        return year;
    }

    public void setYear(final int year) {
        this.year = year;
    }

}
